package com.jade.zsy.store.entity;

import com.jade.bss.db.IdEntity;
import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 店铺KPI
 * User: jinya
 * Date: 2017/6/20
 * Time: 16:33
 * TEL :17701640710   MAIL:2009_jinya@163.com
 * To change this template use File | Settings | File Templates.
 */
@Data
@Entity
@Table(name = "STORE_INFO_KPI")
public class StoreKpi extends IdEntity{

    @Column(name = "type", nullable = true, updatable = true)
    private int type=0;//0-按照星期统计KPI;1-按照月统计
    @Column(name = "storeid", nullable = true, updatable = true)
    private long storeid;       /*商店id*/
    @Column(name = "year", nullable = true, updatable = true)
    private int year;//年
    @Column(name = "month", nullable = true, updatable = true)
    private int month;//月
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "startTime", nullable = true, updatable = true)
    private Date startTime;//开始时间
    @Column(name = "endTime", nullable = true, updatable = true)
    private Date endTime;//结束时间
    @Column(name = "salesAmount", nullable = true, updatable = true)
    private BigDecimal salesAmount=new BigDecimal(0);//本月销售指标
    @Column(name = "hasSalesAmount", nullable = true, updatable = true)
    private BigDecimal hasSalesAmount=new BigDecimal(0);//已经完成销售指标
    @Column(name = "finSalesAmount", nullable = true, updatable = true)
    private BigDecimal finSalesAmount=new BigDecimal(0);//最终完成销售指标
    @Column(name = "importCrm", nullable = false, updatable = true)
    private int importCrm=0;//本月导入会员数指标
    @Column(name = "hasImportCrm", nullable = false, updatable = true)
    private int hasImportCrm=0;//本月已经导入会员数
    @Column(name = "finImportCrm", nullable = false, updatable = true)
    private int finImportCrm=0;//本月最终导入会员数
    @Column(name = "status")
    private boolean status=true;       /*启用/禁用*/

}
